package org.zk.dubbo_provider.service.impl;



import org.zk.dubbo_provider.dao.MemberMapper;
import org.zk.entity.Member;
import org.zk.service.MemberService;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 会员表 服务实现类
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
@Service(timeout = 10000)
public class MemberServiceImpl   implements MemberService {
    @Resource
    private MemberMapper memberMapper;


    @Override
    public Member queryMember(Integer memberId) {
        if (memberId==null){
            return null;
        }

        return memberMapper.queryMember(memberId);
    }

    @Override
    public Member queryMembers(Member member) {
        return memberMapper.queryMembers(member);
    }


    @Override
    public List<Member> getAllMember() {
        return memberMapper.getAllMember();
    }




    public MemberMapper getMemberMapper() {
        return memberMapper;
    }

    public void setMemberMapper(MemberMapper memberMapper) {
        this.memberMapper = memberMapper;
    }


}
